var express = require("express");
var router = express.Router();
const FileDataController = require("../controller/FileDataController");

//挂载路由

router
  .route("/")
  .post(FileDataController.addFileData)
  .get(FileDataController.getFileData);

router
  .route("/:id")
  .patch(FileDataController.updateFileData)
  .get(FileDataController.getFileDataById);

module.exports = router;
